import React, { PureComponent } from "react";
import Retailer from "./Retailers";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import Index from "./scenes/admin/Index";
export default class App extends PureComponent {
  render() {
    return (
      <div>
        <BrowserRouter>
          <Switch>
            {/*--------------------------商城界面--------------------------*/}
            <Route path="/retailers" component={Retailer} />
            {/*--------------------------商城界面--------------------------*/}

            {/*--------------------------管理员界面-------------------------*/}
            <Route path="/admin/index" component={Index} />
            {/*--------------------------管理员界面-------------------------*/}
          </Switch>
        </BrowserRouter>
      </div>
    );
  }
}
